package wo.resume.po;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;

/**
 * 简历
 * @author cailei
 * @date 2018年11月29日
 */
@Entity
@Table(name = "resume_info")
public class Resume {
	private static Logger LOG = LogManager.getLogger(Resume.class);
	
	/**
	 * ID
	 */
	@Id
	private String id;
	
	/**
	 * 姓名
	 */
	@Column(length = 30)
	private String name;
	
	/**
	 * 工作经历,relateWeakEntity:true
	 */
	@OneToMany(mappedBy = "resume")
	private List<Work> works;
	
	/**
	 * 教育经历,relateWeakEntity:true
	 */
	@OneToMany(mappedBy = "resume")
	
	private List<Education> educations;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<Work> getWorks() {
		return works;
	}

	public void setWorks(List<Work> works) {
		this.works = works;
	}

	public List<Education> getEducations() {
		return educations;
	}

	public void setEducations(List<Education> educations) {
		this.educations = educations;
	}
}
